package com.sc.nft.entity.dto;

import com.sc.nft.enums.ExpenditureRecordTypeEnum;
import com.sc.nft.enums.UserBalanceTypeEnum;
import com.sc.nft.enums.WalletDetailTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class MallDeductMoneyDto {
    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    private Long id;
    @ApiModelProperty("金额")
    @NotNull(message = "金额不能为空")
    private BigDecimal amount;
    @ApiModelProperty("用户余额类型")
    private UserBalanceTypeEnum userBalanceTypeEnum;
    @ApiModelProperty("钱包明细类型")
    private WalletDetailTypeEnum walletDetailTypeEnum;
    @ApiModelProperty("状态: 1:充值(只记录成功) 2:提现(只记录成功)  3:消费 4:出售(二级) 5:后台加款 6:后台扣款")
    private ExpenditureRecordTypeEnum type;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("订单id")
    private Long orderId;
    @ApiModelProperty("是否是加款")
    @NotNull(message = "是否是加款不能为空")
    private Boolean isAdd;
}
